package com.atguigu.lease.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "后台管理登录数据模型")
public class LoginSubmitDto {
    @NotNull(message = "账号不能为空")
    private String username;
    @NotNull(message = "密码不能为空")
    @Length(min = 6, max = 12 , message = "密码长度必须在6~12位")
    private String password;
    @NotNull(message = "验证码的键")
    private String captchaKey;
    @NotNull(message = "验证码不能为空")
    @Length(min = 4 , max = 4 , message = "验证码长度必须为4位")
    private String captchaCode;
}
